gdk_seat_get_capabilities
gdk_seat_get_pointer
gdk_seat_get_keyboard
-gdk_seat_get_physical_devices
+gdk_seat_get_devices
gdk_seat_get_tools
<SUBSECTION Standard>
seat = gdk_display_get_default_seat (display);
- devices = gdk_seat_get_physical_devices (seat, GDK_SEAT_CAPABILITY_ALL);
+ devices = gdk_seat_get_devices (seat, GDK_SEAT_CAPABILITY_ALL);
devices = g_list_prepend (devices, gdk_seat_get_keyboard (seat));
devices = g_list_prepend (devices, gdk_seat_get_pointer (seat));
}
/**
- * gdk_seat_get_physical_devices:
+ * gdk_seat_get_devices:
* @seat: a #GdkSeat
* @capabilities: capabilities to get devices for
*
- * Returns the physical devices that match the given capabilities.
+ * Returns the devices that match the given capabilities.
*
* Returns: (transfer container) (element-type GdkDevice): A list of #GdkDevices.
* The list must be freed with g_list_free(), the elements are owned
* by GDK and must not be freed.
**/
GList *
-gdk_seat_get_physical_devices (GdkSeat *seat,
- GdkSeatCapabilities capabilities)
+gdk_seat_get_devices (GdkSeat *seat,
+ GdkSeatCapabilities capabilities)
{
GdkSeatClass *seat_class;
g_return_val_if_fail (GDK_IS_SEAT (seat), NULL);
seat_class = GDK_SEAT_GET_CLASS (seat);
- return seat_class->get_physical_devices (seat, capabilities);
+ return seat_class->get_devices (seat, capabilities);
}
/**
gdk_seat_get_capabilities (GdkSeat *seat);
GDK_AVAILABLE_IN_ALL
-GList * gdk_seat_get_physical_devices (GdkSeat *seat,
+GList * gdk_seat_get_devices (GdkSeat *seat,
GdkSeatCapabilities capabilities);
GList * gdk_seat_get_tools (GdkSeat *seat);
}
static GList *
-gdk_seat_default_get_physical_devices (GdkSeat *seat,
- GdkSeatCapabilities capabilities)
+gdk_seat_default_get_devices (GdkSeat *seat,
+ GdkSeatCapabilities capabilities)
{
GdkSeatDefaultPrivate *priv;
GList *devices = NULL;
seat_class->ungrab = gdk_seat_default_ungrab;
seat_class->get_logical_device = gdk_seat_default_get_logical_device;
- seat_class->get_physical_devices = gdk_seat_default_get_physical_devices;
+ seat_class->get_devices = gdk_seat_default_get_devices;
seat_class->get_tools = gdk_seat_default_get_tools;
}
GdkDevice * (* get_logical_device) (GdkSeat *seat,
GdkSeatCapabilities capability);
- GList * (* get_physical_devices) (GdkSeat *seat,
- GdkSeatCapabilities capabilities);
+ GList * (* get_devices) (GdkSeat *seat,
+ GdkSeatCapabilities capabilities);
GList * (* get_tools) (GdkSeat *seat);
};
seat = gdk_display_get_default_seat (display);
if (seat)
{
- devices = gdk_seat_get_physical_devices (seat, GDK_SEAT_CAPABILITY_ALL);
+ devices = gdk_seat_get_devices (seat, GDK_SEAT_CAPABILITY_ALL);
devices = g_list_prepend (devices, gdk_seat_get_keyboard (seat));
devices = g_list_prepend (devices, gdk_seat_get_pointer (seat));
}
device = gdk_seat_get_pointer (s->data);
gdk_surface_set_cursor_internal (surface, device, surface->cursor);
- devices = gdk_seat_get_physical_devices (s->data, GDK_SEAT_CAPABILITY_TABLET_STYLUS);
+ devices = gdk_seat_get_devices (s->data, GDK_SEAT_CAPABILITY_TABLET_STYLUS);
for (d = devices; d; d = d->next)
{
device = d->data;
}
static GList *
-gdk_wayland_seat_get_physical_devices (GdkSeat *seat,
- GdkSeatCapabilities capabilities)
+gdk_wayland_seat_get_devices (GdkSeat *seat,
+ GdkSeatCapabilities capabilities)
{
GdkWaylandSeat *wayland_seat = GDK_WAYLAND_SEAT (seat);
GList *physical_devices = NULL;
seat_class->grab = gdk_wayland_seat_grab;
seat_class->ungrab = gdk_wayland_seat_ungrab;
seat_class->get_logical_device = gdk_wayland_seat_get_logical_device;
- seat_class->get_physical_devices = gdk_wayland_seat_get_physical_devices;
+ seat_class->get_devices = gdk_wayland_seat_get_devices;
seat_class->get_tools = gdk_wayland_seat_get_tools;
}
seat = gdk_display_get_default_seat (display);
- devices = gdk_seat_get_physical_devices (seat, GDK_SEAT_CAPABILITY_ALL);
+ devices = gdk_seat_get_devices (seat, GDK_SEAT_CAPABILITY_ALL);
devices = g_list_prepend (devices, gdk_seat_get_keyboard (seat));
devices = g_list_prepend (devices, gdk_seat_get_pointer (seat));
seat = gdk_display_get_default_seat (display);
- devices = gdk_seat_get_physical_devices (seat, GDK_SEAT_CAPABILITY_ALL);
+ devices = gdk_seat_get_devices (seat, GDK_SEAT_CAPABILITY_ALL);
devices = g_list_prepend (devices, gdk_seat_get_keyboard (seat));
devices = g_list_prepend (devices, gdk_seat_get_pointer (seat));
g_free (text);
g_free (caps);
- list = gdk_seat_get_physical_devices (seat, GDK_SEAT_CAPABILITY_ALL);
+ list = gdk_seat_get_devices (seat, GDK_SEAT_CAPABILITY_ALL);
for (l = list; l; l = l->next)
add_device (gen, GDK_DEVICE (l->data));
g_assert (caps != GDK_SEAT_CAPABILITY_NONE);
pointer0 = gdk_seat_get_pointer (seat0);
- physical_devices = gdk_seat_get_physical_devices (seat0, GDK_SEAT_CAPABILITY_POINTER);
+ physical_devices = gdk_seat_get_devices (seat0, GDK_SEAT_CAPABILITY_POINTER);
if ((caps & GDK_SEAT_CAPABILITY_POINTER) != 0)
{
}
keyboard0 = gdk_seat_get_keyboard (seat0);
- physical_devices = gdk_seat_get_physical_devices (seat0, GDK_SEAT_CAPABILITY_KEYBOARD);
+ physical_devices = gdk_seat_get_devices (seat0, GDK_SEAT_CAPABILITY_KEYBOARD);
if ((caps & GDK_SEAT_CAPABILITY_KEYBOARD) != 0)
{